import request from '@/utils/request'

//更新网站配置 /admin/site/update
export function updateSite(data) {
  return request({
    url: '/admin/site/update',
    method: 'put',
    data: data
  })
}

//上传网站配置图片 /admin/site/upload
export function uploadSiteImage(data) {
  return request({
    url: '/admin/site/upload',
    method: 'post',
    data: data
  })
}

//获取网站配置
export function getSiteConfig() {
  return request({
    url: '/admin/site',
    method: 'get'
  })
}


//获取网站后台信息 /admin
export function getSite(){
  return request({
    url: '/admin',
    method: 'get'
  })
}